#include "network/networkManager.h"
#include <iostream>
#include <cstdio>
void testMulitTaskDownload()
{
    // 添加待下载的URL
    std::vector<UrlObeject*> urlObjects;
    UrlObeject obj1("http://example.com/file1.txt", "file1.txt");
    urlObjects.push_back(&obj1);

    HNNetwork::MultiTaskDownload(urlObjects,40960);
}
void testTaskupload()
{
    const char* url = "http://example.com/upload"; // 上传目标URL
    const char* filePath = "testfile.txt";
    HNNetwork::TaskUpload(url,filePath);
}
int main(int argc, char *argv[])
{
    testMulitTaskDownload();
    return false;
}
